<?php
$page = 1;
	$lang = $this->arrParam['lang'];
	if(empty($lang)){
		$lang = 'vi';
	}else{
		$lang = $this->arrParam['lang'];
	}
	
	 ?>
<div class="baiviet">
                                             
                                             <?php 
                                             if(count($newItems) >0){
                                             	?>
                                             	<span>Tin cũ hơn</span>
                                             	<?php
                                             
                                             foreach ($newItems as $key=>$value){
				                            	$title 		= $value['name'];
				                            	$title 		= str_replace("\\"," ",$title);
				                            	$urlOptions = array(
																'module'=>'news',
																'controller'=>'index',
																'action'=>'detail',
																'title'=>$value['alias'],
																'id'=>$value['id'],
									                   			'lang'=>$lang);
				                            	$linkDetail = $view->url($urlOptions,'news-detail');
                            					?>
                                             <p><a href="<?php echo $linkDetail?>" title="<?php echo $title?>"><?php echo $title?></a></p>
                                             <?php }// foreach 
                                             } // if?>
                                        </div>
                                        <div class="baiviet">
                                             
                                             <?php  
                                             if(count($oldItems) >0){
                                             ?>	
                                             <span>Tin cũ hơn</span>
                                             <?php 
                                             foreach ($oldItems as $key=>$value){
				                            	$title 		= $value['name'];
				                            	
				                            	$urlOptions = array(
																'module'=>'news',
																'controller'=>'index',
																'action'=>'detail',
																'title'=>$value['alias'],
																'id'=>$value['id'],
									                   			'lang'=>$lang);
				                            	$linkDetail = $view->url($urlOptions,'news-detail');
                            					?>
                                             <p><a href="<?php echo $linkDetail?>" title="<?php echo $title?>"><?php echo $title?></a></p>
                                             <?php }// end foreach
                                             } // end if?>
                                        </div>